import request from '@/utils/request'

// 查询食品安全教育列表
export function listOpmFoodSafeEdu(query) {
  return request({
    url: '/food/opmFoodSafeEdu/list',
    method: 'get',
    params: query
  })
}

// 查询食品安全教育详细
export function getOpmFoodSafeEdu(id) {
  return request({
    url: '/food/opmFoodSafeEdu/' + id,
    method: 'get'
  })
}

// 新增食品安全教育
export function addOpmFoodSafeEdu(data) {
  return request({
    url: '/food/opmFoodSafeEdu',
    method: 'post',
    data: data
  })
}

// 修改食品安全教育
export function updateOpmFoodSafeEdu(data) {
  return request({
    url: '/food/opmFoodSafeEdu',
    method: 'put',
    data: data
  })
}

// 删除食品安全教育
export function delOpmFoodSafeEdu(id) {
  return request({
    url: '/food/opmFoodSafeEdu/' + id,
    method: 'delete'
  })
}
